package com.tiantianyuegou.http;

import com.tiantianyuegou.net.ConfigManager;

/**
 * 网络请求地址URL
 * Created by George on 2016/8/31.
 */
public class ApiDefine {
    public static final String key = "z1zkey";
    public static final String code = "MTJCNDgyOTIxOTk4QjUzQzM2QTlFN0ZFMzY0MDNEMjQ=";
    public static String TAG = "?key=z1zkey&code=MTJCNDgyOTIxOTk4QjUzQzM2QTlFN0ZFMzY0MDNEMjQ=";

    /**
     * 服务器地址
     **/
    //	public static final String SERVER_URL = "http://121.40.188.122:8080/lezhu-api/";
//    public static final String SERVER_URL = "http://api.hjtechcn.cn:88/lezhu-api/";
//          首页广告  public static final String SERVER_URL = " http://hjtech.wicp.net:8080/tiantianyuegou-api/"
//            TODO 需换成真实地址
//            http://hjtech.wicp.net:8080/tiantianyuegou-api/member/register

//    public static final String SERVER_URL = "http://hjtech.wicp.net:8080/tiantianyuegou-api";
    public static final String SERVER_URL ="http://hjtech.wicp.net:8080/tiantianyuegou-api";
    public static final String GET_CODE = SERVER_URL + "/vcode/get";// 获取验证码

//    TODO 需换成真实拼接url
//    /customer/update_password
    public static final String FORGET_PASSWORD = SERVER_URL + "/customer/update_password";// 忘记密码测试

    //public static final String ADDRESS_BASE = "http://192.168.0.253:8081/yilaguan-api";
  public static final String ADDRESS_BASE = "http://hjtech.wicp.net:8080/tiantianyuegou-api";
    //    public static final String ADDRESS_BASE = "http://hjtech.wicp.net:8080/yilaguan-api1";
    public static final String SECRET_KEY = "?key=" + ConfigManager.PROJECT_KEY
            + "&code=" + ConfigManager.PROJECT_CODE;

    public static final String REGISTER = ADDRESS_BASE
            + "/member/register";//注册
    public static final String LOGIN = ADDRESS_BASE + "/member/login"+TAG;//登录
//    public static final String GET_CODE = ADDRESS_BASE + "/common/vcode/get";// 获取验证码

//    http://hjtech.wicp.net:8080/tiantianyuegou-api/advertise/list?tacCataId=1
    public static final String HOME_ADV_LIST = ADDRESS_BASE
            + "/advertise/list";//首页广告
//    public static final String FORGET_PASSWORD = ADDRESS_BASE
//            + "/member/forget";//忘记密码

    //一元购
//     http://hjtech.wicp.net:8080/tiantianyuegou-api/one/list?page=1&type=1
    public static final String ONEGOODS = SERVER_URL + "/one/list";//一元购


    public static final String QIANG_GOU = SERVER_URL + "/one/in";//一元购抢购记录
//    http://hjtech.wicp.net:8080/tiantianyuegou-api/product/list?tgId=1&tmId=1//tacCataId=1
//    http://www.zgttyg.com/tiantianyuegou-api/product/list?city=87&page=1
    public static final String HOME_RECOMMEND = ADDRESS_BASE
            + "/product/list";// 首页推荐商品
    public static final String CATEGORY = ADDRESS_BASE
            + "/product/category";// 分类列表
    public static final String PINGJIA = ADDRESS_BASE + "/comment/list";//评价
    public static final String SEARCH = ADDRESS_BASE + "/product/search";//搜索
    public static final String GET_FREIGHT = ADDRESS_BASE
            + "/product/region/freight";// 获取运费
    public static final String GOODS_DETAIL = ADDRESS_BASE + "/product/detail";// 商品详情

//    http://www.zgttyg.com/tiantianyuegou-api/product/detail?tgId=342&tmId=130 商品详情

    //     http://www.zgttyg.com/tiantianyuegou-api/comment/list?tgId=342&page=1 商品评价
//     http://www.zgttyg.com/tiantianyuegou-api/collect/add?tmId=342&tgId=130 商品收藏
//    http://www.zgttyg.com/tiantianyuegou-api/collect/del?tmId=342&tgId=130 取消商品收藏
    public static final String COMMENT_LIST = ADDRESS_BASE
            + "/comment/list";// 评论列表

    public static final String SHANGJIA_LIST = SERVER_URL + "/business/list";//商家列表
    public static final String GET_TICKET = ADDRESS_BASE + "/ticket/add";//领取优惠券
    public static final String ADD_COLLECT = ADDRESS_BASE
            + "/collect/add";//添加收藏
    public static final String DELTE_COLLECT = ADDRESS_BASE + "/collect/del";//取消收藏
    public static final String GOODS_SPECIFICATION = ADDRESS_BASE + "/product/spec";//商品规格信息
    public static final String ADD_SHARE = ADDRESS_BASE + "/share/add";//添加分享记录
    public static final String CAR_LIST = ADDRESS_BASE
            + "/car/list";// 购物车列表
    public static final String ADD_CAR = ADDRESS_BASE + "/car/add";//添加购物车
    public static final String DELTE_CAR = ADDRESS_BASE + "/car/del";//删除购物车商品
    public static final String UPDATE_CAR = ADDRESS_BASE
            + "/car/list";//更新购物车商品



    public static final String TICKET_LIST = ADDRESS_BASE + "/ticket/list";//会员领取优惠券
    public static final String ADDRESS_LIST = ADDRESS_BASE + "/address/list";//会员地址列表
    public static final String ADD_ORDER = ADDRESS_BASE + "/order/add";//生成订单
    public static final String PAY_SUCCESS_NOTIFY = ADDRESS_BASE + "/order/pay/notify";//成功付款通知
    public static final String REDUNDANT_PAY = ADDRESS_BASE + "/order/pay";//余额支付
    public static final String STORE_CATRGORY = ADDRESS_BASE
            + "/shop/category";//店铺分类
    public static final String STORE_LIST = ADDRESS_BASE + "/shop/list";//店铺列表
    public static final String STORE_DETAIL = ADDRESS_BASE + "/shop/detail";//店铺详情
    public static final String TEAM_BUY_LIST = ADDRESS_BASE + "/tuangou/list";//团购列表
    public static final String TEAM_BUY_DETAIL = ADDRESS_BASE
            + "/tuangou/detail";//团购详情
    public static final String COUPON_USE = ADDRESS_BASE
            + "/member/guang";// 贯使用明细

    public static final String USER_INFO = ADDRESS_BASE + "/member/detail";// 会员信息
    public static final String UPDATE_AVATAR = ADDRESS_BASE + "/common/member/upload_avatar";// 修改头像
    public static final String RED_BAG = ADDRESS_BASE + "/member/red";// 红包使用明细
    public static final String REDUNDANT_ACCOUNT = ADDRESS_BASE + "/member/balance";// 余额使用明细
    public static final String RED_BALANCE_DETAIL = ADDRESS_BASE + "/member/record";//红包和余额使用明细
    public static final String TAKE_MONEY = ADDRESS_BASE + "/bank/member/take_money";// 提现
    public static final String BANK_LIST = ADDRESS_BASE + "/bank/list";// 银行卡列表
    public static final String COMMON_DATA = ADDRESS_BASE + "/common/words/list";// 常用基础数据
    public static final String ADD_BANK = ADDRESS_BASE + "/bank/add";// 添加银行卡
    public static final String DELET_BANK = ADDRESS_BASE + "/bank/del";// 删除银行卡
    public static final String MESSAGE_LIST = ADDRESS_BASE + "/message/list";// 消息列表
    public static final String MESSAGE_DELTE_ALL = ADDRESS_BASE + "/message/delall";// 消息清空
    public static final String MESSAGE_READ = ADDRESS_BASE + "/message/read";// 消息标记为已读
    public static final String ORDER_LIST = ADDRESS_BASE + "/order/list";// 会员订单列表
    public static final String ORDER_DETAIL = ADDRESS_BASE + "/order/detail";// 订单详情
    public static final String ORDER_REFUND = ADDRESS_BASE + "/order/refund";// 申请退款
    public static final String ORDER_RECEIVE = ADDRESS_BASE + "/order/receive";// 确认收货
    public static final String ORDER_CANCEL = ADDRESS_BASE + "/order/cancel";// 取消订单
    public static final String ORDER_DELTE = ADDRESS_BASE + "/order/del";// 删除订单
    public static final String GOODS_COMMENT = ADDRESS_BASE + "/shop/comment/add";// 产品评价
    public static final String COLLECT_LIST = ADDRESS_BASE + "/collect/list";// 会员收藏列表
    public static final String RESET_PWD = ADDRESS_BASE + "/member/reset_pass";// 重置密码
    public static final String UPDATE_ADDRESS = ADDRESS_BASE + "/address/update";// 编辑收货地址
    public static final String RESET_PAY_PWD = ADDRESS_BASE + "/member/reset_paypass";// 重置支付密码
    public static final String ADD_ADDRESS = ADDRESS_BASE + "/address/add";// 添加收货地址
    public static final String DELET_ADDRESS = ADDRESS_BASE + "/address/del";// 删除收货地址
    public static final String STORE_INFO = ADDRESS_BASE + "/shop/info";// 会员商家信息
    public static final String GOODS_CATEGORY_LIST = ADDRESS_BASE + "/product/category/list";// 产品类型列表
    public static final String GOODS_SPECIFICATION_LIST = ADDRESS_BASE + "/product/spec/list";// 产品规格列表（发布商品用）
    public static final String BRAND_LIST = ADDRESS_BASE + "/product/brand/list";// 品牌列表
    public static final String GOODS_RELEASE = ADDRESS_BASE + "/product/add";// 产品发布
    public static final String GOODS_TAKENDOWN = ADDRESS_BASE + "/product/takendown";// 产品下架
    public static final String UPDATE_GOODS = ADDRESS_BASE + "/product/update";// 产品编辑
    public static final String DELET_PRODUCT = ADDRESS_BASE + "/product/del";// 产品删除
    public static final String STORE_MEMBER_LIST = ADDRESS_BASE + "/shop/member";// 商家会员列表
    public static final String STORE_ORDER_LIST = ADDRESS_BASE + "/shop/order";// 商家订单列表
    public static final String STORE_ORDER_DELET = ADDRESS_BASE + "/shop/del_order";// 商家订单删除
    public static final String STORE_SEND = ADDRESS_BASE + "/shop/send";// 商家订单发货
    public static final String STORE_REFUND = ADDRESS_BASE + "/shop/refund";// 商家处理退款申请
    public static final String SELECT_AREA = ADDRESS_BASE + "/region/provice/list";//省市区三级联动
    //    一元购余额支付
    public static final String ONE_PAUY = SERVER_URL + "/one/pay";

    public static final String GOODS_SPECIFICATION_LIST_BUY = ADDRESS_BASE + "/product/spec/sale/list";//产品规格列表 （购买产品用）
    public static final String SET_PAY_PASS = ADDRESS_BASE + "/member/set_paypass";//设置支付密码
    public static final String CHECK_PAY_PASS = ADDRESS_BASE + "/order/isnull/paypassword";//检查是否设置了支付密码
    public static final String RECOMMEND_LIST = ADDRESS_BASE + "/shop/recommend/list";//本地商城推荐
    public static final String FIND_LOCATION_BY_NAME = ADDRESS_BASE + "/common/findLocationByName";//根据城市名获取城市ID
    public static final String UPLOAD_PRODUCT_PIC = ADDRESS_BASE + "/common/upload_photo";//上传商品图片
    public static final String FINDLOCATION_LIST = ADDRESS_BASE + "/common/findLocationList";//获取位置信息
    public static final String SHOP_GOODS_LIST = ADDRESS_BASE + "/shop/product/list";//店铺商品列表（销售，库存）

    public static final String GET_PRODUCT_COLUMNS = ADDRESS_BASE + "/product/columns/list";//获取商品栏目列表
    public static final String GET_MANAGE_PRODUCT = ADDRESS_BASE + "/shop/product/list";//商品管理
    public static final String GET_REASON_DETAIL = ADDRESS_BASE + "/order/refund/order/detail";//商家退款中的退款原因
    public static final String REDBAG_LIST = ADDRESS_BASE + "/red/list";//红包列表
    public static final String ROB_REDBAG = ADDRESS_BASE + "/red/get/redchange";//抢红包
    public static final String OPEN_REDBAG = ADDRESS_BASE + "/red/open/red";//拆红包
    public static final String REFUND_ORDER_DETAIL = ADDRESS_BASE + "/order/refund/order/detail";//退货退款  订单详情
    public static final String REDBAG_AUTOSCROLL = ADDRESS_BASE + "/red/message/list";//抢红包跑马灯

    public static final String UPDATE = ADDRESS_BASE + "/common/version";//版本更新的接口
    public static final String PROTOCOL = ADDRESS_BASE + "/common/aboutus";//协议的接口  2使用帮助；3，关于我们；4，注册协议

}
